package com.superb.util;

import javax.swing.*;

/**
 * @author Superb
 * @date 2020/9/15 - 18:41
 * @E_mail superb12580@163.com
 */
public class MyJFrame extends JFrame {
    public MyJFrame(String name,int width,int height) {
        setTitle(name);
        setSize(width,height);
        setLocationRelativeTo(null);
        setResizable(false);//窗口大小不改变
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//        setVisible(true);
    }
}
